package testJdk.base.juc_test.multi_threading.lock;

import lombok.Data;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @ClassName : learn_jdk.multi_threading.lock.A
 * @Description : 类描述
 * Created by cyd on 2021-03-27 20:24:16
 */
@Data
public class A {
    //private AtomicInteger num = new AtomicInteger();
    private AtomicInteger num = new AtomicInteger();

    public void increase() {
        num.incrementAndGet();
    }
}
